text=str(input("Введите цифры "))
text1=text.split()
import random
l=""
a0=""
a1=""
a2=""
a3=""
a4=""
a5=""
a6=""
a7=""
a8=""
a9=""
re=""
for i in text1:
        if i=="zero":
            a0="0"
            re=re+a0
        if i=="one":
            a1="1"
            re=re+a1
        if i=="two":
            a2="2"
            re=re+a2
        if i=="three":
            a3="3"
            re=re+a3
        if i=="four":
            a4="4"
            re=re+a4
        if i=="five":
            a5="5"
            re=re+a5
        if i=="six":
            a6="6"
            re=re+a6
        if i=="seven":
            a7="7"
            re=re+a7
        if i=="eight":
            a8="8"
            re=re+a8
        if i=="nine":
            a9="9"
            re=re+a9
re1=int(re)

if 99<re1<1000:
	    n=random.randint(re1-10,re1+10)
	    while(n%2==0):
	        n=random.randint(re1-10,re1+10)
	    print(n)

else:
    print("Wrong input")